package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.ClientRecord;
import cn.wolfcode.crm.query.ObjectQuery;

import java.util.List;

public interface ClientRecordMapper {
    void deleteByPrimaryKey(Long id);

    /**
     * 保存客户转移记录
     * @param record
     */
    void insertByClientTransfer(ClientRecord record);

    /**
     * 保存客户流失,开发成功,开发失败记录
     * @param record
     */
    void insertByClientRecordOeder(ClientRecord record);


    ClientRecord selectByPrimaryKey(Long id);
    int queryForCount(ObjectQuery qo);

    List<ClientRecord> queryForList(ObjectQuery qo);
}